import { HomeRouter } from "./_home";
import { useRoutes } from "react-router-dom";
import { MyRouter } from "./_my";
import { Suspense } from 'react'
import { DiseaseRouter } from "./_disease";
import { AskRouter } from "./_ask";


const _routes = HomeRouter.concat(MyRouter).concat(DiseaseRouter).concat(AskRouter);

const RouterView = () => useRoutes(_routes);
const Router = () => <Suspense fallback="路由加载中...."><RouterView></RouterView></Suspense>;


export default Router